package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.College;
import com.ruoyi.system.mapper.CollegeMapper;
import com.ruoyi.system.service.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollegeServiceIml implements CollegeService {
    @Autowired
    private CollegeMapper collegeMapper;

    @Override
    public College selectCollegeByCollegeId(Long collegeId) {
        return collegeMapper.selectCollegeByCollegeId(collegeId);
    }

    @Override
    public List<College> selectCollegeList(College college) {
        return collegeMapper.selectCollegeList(college);
    }

    @Override
    public int insertCollege(College college) {
        return collegeMapper.insertCollege(college);
    }

    @Override
    public int updateCollege(College college) {
        return collegeMapper.updateCollege(college);
    }

    @Override
    public int deleteCollegeByCollegeId(Long collegeId) {
        return collegeMapper.deleteCollegeByCollegeId(collegeId);
    }

    @Override
    public int deleteCollegeByCollegeIds(Long[] collegeIds) {
        return collegeMapper.deleteCollegeByCollegeIds(collegeIds);
    }
    @Override
    public College selectTwo(String name) {
        return collegeMapper.selectByTwo(name);
    }
    @Override
    public List<College> selectName(String name) {
        return collegeMapper.selectName(name);
    }
    @Override
    public List<College> selectCollegeByCollegeName(String name) {
        return collegeMapper.selectCollegeByCollegeName(name);
    }
}
